Jim's
Tutorials

Fall 2018
course
site

Followed the guide at https://hackernoon.com/learn-blockchains-by-building-one-117428612f46 and built an example blockchain. It's a flask app that interracts with a blockchain object via http requests. To make the requests I first started using curl but decided to figure out how use an app called postman that everybody always mentions to test their API's. you can find it here: https://www.getpostman.com/ Basically just an easier way to test out http requests.

The app essentially lets you create transactions with an amount, a sender and a recipient and then mine them, which saves them permanently in the chain. You can register nodes from different addresses and there is a basic consensus algorithm that checks for the longest node.

I just created too different versions of the code running on two different ports, then registered one node with the parent node at port 5000. I mined a transaction or 2 on the parent node, then mined 6 nodes on the other node to see the consensus mechanism at work. Screenshots and code attached.

attachments [paper clip]

  last modified size
TXT Screen_Shot_2018-10-16_at_9.05.31_PM.png Wed Dec 04 2024 08:34 am 224K
TXT Screen_Shot_2018-10-16_at_9.05.45_PM.png Wed Dec 04 2024 08:34 am 198K
TXT blockchain.py Wed Dec 04 2024 08:34 am 8.5K
TXT blockchain1.py Wed Dec 04 2024 08:34 am 8.5K